package com.yaglyf.mvc;

import org.springframework.boot.SpringApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * Title: Class CommentsShow
 * Description:
 *所有功能开启地方
 *
 * @author qiang.yang
 * @version 1.0.0
 * @email qiang.yang@chinaredstar.com
 * @date: 2016/10/7 23:00
 */
//@SpringBootApplication         //springboot启动加载
//@EnableDiscoveryClient        //服务提供方
@EnableHystrix                 //断连接路由
@SpringCloudApplication       //包含上2个注解，外加hy
@EnableAspectJAutoProxy(proxyTargetClass = true)      //开启 切面 aop
@EnableCaching               //缓存
@EnableRedisHttpSession     //spring session    基于Filter --> SessionRepositoryFilter
//@EnableWebMvc                //spring mvc
public class MvcApplication {

    public static void main(String[] args) {
        SpringApplication.run(MvcApplication.class,args);
    }
}
